#!/bin/bash
# Zaitan Module - NetBeans Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='3.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='NetBeans'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='6.0beta1'
RMOD_DESCRIPTION='Installs NetBeans'



# install NetBeans

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall
/usr/lib/zaitan/modulo/mod-jdk6


cd /usr/share/zaitan

## Basic 23 MB
wget -c http://dlc.sun.com/netbeans/download/6.0/milestones/latest/bundles/netbeans-6.0beta1-javase-linux.sh
chmod +x netbeans-6.0beta1-javase-linux.sh
./netbeans-6.0beta1-javase-linux.sh





## NetBeans Ruby
#wget -c http://dlc.sun.com/netbeans/download/6.0/milestones/latest/bundles/netbeans-6.0beta1-ruby-linux.sh

## NetBeans CPP
#wget -c http://dlc.sun.com/netbeans/download/6.0/milestones/latest/bundles/netbeans-6.0beta1-cpp-linux.sh

## Standard 119 MB
# wget -c http://dlc.sun.com/netbeans/download/6.0/milestones/latest/bundles/netbeans-6.0beta1-javaee-linux.sh

## Full 172 MB
#wget -c http://dlc.sun.com/netbeans/download/6.0/milestones/latest/bundles/netbeans-6.0beta1-linux.sh


echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0
